home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7192 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.daimi.aau.dk!fluid
  2. From: fluid@daimi.aau.dk (Kr{n Munck Christensen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: iffparse.library problems
  5. Date: 11 Apr 1996 11:03:53 GMT
  6. Organization: DAIMI, Computer Science Dept. at Aarhus University
  7. Message-ID: <4kioup$dc6@gjallar.daimi.aau.dk>
  8. NNTP-Posting-Host: franc.daimi.aau.dk
  9.  
  10. I have a bit of a problem with iffparse.library. I'm making a sample
  11. player for my friend's Toccata 16bit soundcard. I started out by making it
  12. play raw (cdda) samples. But I would also like it to recognize MAUD files.
  13. So I used the ParseIFF() function on the stream with StopHunk() (?) set
  14. to the right header block (MDAT). The problem is: no matter what file I use it
  15. on, it returns 0 (i.e. no error). Even if it is a raw sample! It should
  16. return something like IFFERR_FILENOTIFF (?), right? Now, if I use
  17. ReadChunkyBytes() there are no problems if the stream is indeed a MAUD
  18. file, but if it is raw sample data, it produces an error after at least one
  19. succesful read. Why is that? Shouldn't it be possible to use ParseIFF() for
  20. exactly this kind of file type detection? And why does ReadChunkyBytes()
  21. read correctly only the first time?
  22.  
  23.    Regards...
  24.  
  25.   
  26. --
  27.    Kraen Munck, Gudrunsvej 16, 6. TH. |      Pink Fluid/x-Subacid
  28.    8220 Brabrand, Denmark             |-------------------------------
  29.    fluid@daimi.aau.dk                 |     Phone: +45 86254737
  30.    http://www.daimi.aau.dk/~fluid/    |     Fido:   2:238/100.12
  31.